package com.yantong.service;

import com.yantong.utils.PageUtils;
import com.yantong.pojo.OrderRefund;

import java.util.Date;
import java.util.List;

/**
 * 退款申请服务
 * @author kanghaixin
 * @date 2018/9/10.17:43
 */
public interface RefundService {

    /**
     * 退款申请列表数据
     * @param start
     * @param end
     * @param centreId
     * @param queryItem
     * @param status
     * @param offset
     * @param limit
     * @return
     */
    PageUtils<OrderRefund> listOrderRefund(Date start, Date end, Long centreId, Long teamId, String queryItem, Integer status, int offset, int limit);

    /**
     * 退款申请列表   不分页
     * @param start
     * @param end
     * @param centreId
     * @param queryItem
     * @param status
     * @return
     */
    List<OrderRefund> listOrderRefund(Date start, Date end, Long centreId, Long teamId, String queryItem, Integer status);

    /**
     * 更新退款申请信息
     * @param refund
     * @return
     */
    int updateRefund(OrderRefund refund);

    /**
     * 关闭退款信息
     * @param refundId
     * @param aid
     * @param aName
     * @return
     */
    int closeRefund(Long refundId, Long aid, String aName);

//    /**
//     * 确认退款
//     * @param refundId
//     * @param aid
//     * @param aName
//     * @return
//     */
//    int confirmRefund(Long refundId, Long aid, String aName);



}
